package com.ysj.demo.accompanynetwork.service.impl;

import android.util.Log;

import com.ysj.demo.accompanynetwork.ApiServiceUntil;
import com.ysj.demo.accompanynetwork.bean.BonuspointSearchModel;
import com.ysj.demo.accompanynetwork.bean.PartnerPost;
import com.ysj.demo.accompanynetwork.bean.PostQuery;
import com.ysj.demo.accompanynetwork.bean.RestRsp;
import com.ysj.demo.accompanynetwork.service.IPostQueryService;
import com.ysj.demo.accompanynetwork.service.bean.PostSearchModel;

import java.io.IOException;
import java.util.List;

import retrofit2.Call;
import retrofit2.Response;

public class PostQueryServiceImpl implements IPostQueryService {



    public static void main(String[] args) throws IOException {
        PostQueryServiceImpl postQueryService = new PostQueryServiceImpl();
        BonuspointSearchModel postQuery = new BonuspointSearchModel();
        postQuery.setUserid("68E8BC7CD7744E15A9E33C4091BBCEF8");
        Call<RestRsp> partnerPosts = ApiServiceUntil.getInstance().getBounsPointsService().userPoint(postQuery);
        Response<RestRsp> rsp = partnerPosts.execute();
//        System.out.println(rsp.errorBody().string());
        System.out.println(rsp.body().getData());
    }
}
